package com.handsome.代理模式.静态代理;

/**
 * @author niechun
 * @date 2023/3/9 19:53
 */
public class Client {

    public static void main(String[] args) {
        //被代理对象
        ITeacher teacher=new TeacherDao();
        //代理对象
        ITeacher teacherProxy=new TeacherDaoProxy(teacher);

        teacherProxy.teach();

    }
}
